package com.weayer.controller;

import com.weayer.dto.ResponseResult;
import com.weayer.request.PointRequest;
import com.weayer.service.PointsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @description: Service服务 - 地图 - 轨迹点Controller
 * @author: Weayer
 **/
@RestController
@RequestMapping("/point")
public class PointsController {
    @Autowired
    PointsService pointsService;

    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody PointRequest pointRequest){
        return pointsService.upload(pointRequest);
    }
}
